<template>
  <div class="question">
    <div v-if='quest.url'> <img :src="quest.url"></div>
    <span>题目：{{quest.question}}</span>
  </div>
</template>
<script>
import { computed } from 'vue'
import { useStore } from 'vuex'
export default {
  name: 'testindex',
  setup() {
    const store = useStore()
    return {
      quest: computed(() => store.state.quest)
    }
  }
}
</script>
<style lang="less" scoped>
.question {
  padding: 14px;
  font-size: 14px;
  > div {
    text-align: center;
  }
  img {
    display: inline-block;
    width: 150px;
    height: 80px;
    margin-bottom: 14px;
  }
}
</style>
